<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="https://cdn.jsdelivr.net/npm/gsap@3.13.0/dist/gsap.min.js"></script>
    <script src=" https://cdn.jsdelivr.net/npm/gsap@3.13.0/dist/ScrollTrigger.min.js"></script>
    <title>Document</title>
    <style>

        #app {
            height: 1000px;
        }

        .images {
            mask-image: url("./gsap_cocktails-main/public/images/mask-img.png");
            mask-repeat: no-repeat;
            mask-position: center;
            mask-size: 50%;
            width: 500px;
            height:500px;
        }
    </style>
</head>

<body>
    <div style="height: 1000px;">
    </div>
    <div id="app">
        <div>123</div>
        <img src="./gsap_cocktails-main/public/images/under-img.jpg" class="images" alt="">
        <div>321</div>
    </div>
    <div style="height: 1200px;">
    </div>
    <script>
        gsap.registerPlugin(ScrollTrigger)
        const scrolltimeLine = gsap.timeline({
            scrollTrigger: {
                trigger: "#app",
                start:"top 20%",
                end: 'bottom center',
                scrub: 1,
                pin: true,
                
            }
        })
        scrolltimeLine.to(".images", {
            scale: 1.2, maskPosition: 'center', maskSize: '400%', duration: 1, ease: 'power1.inOut'
        })
    </script>
</body>

</html>